#include<stdio.h>
#include <string.h>
int main(){
    int n;
    scanf("%d",&n);
}
// 在这里描述函数接口。例如：
void sortFun(char *s) {
    int count[256] = {0};
    int len = strlen(s);
    char temp[len + 1];
    int i, j = 0;

    for (i = 0; s[i]; i++) {
        count[s[i]]++;
    }

    for (i = 0; i < 256; i++) {
        while (count[i] > 0) {
            temp[j++] = i;
            count[i]--;
        }
    }
    temp[j] = '\0';

    strcpy(s, temp);
}